package po;


import java.io.Serializable;
import java.util.Objects;

/**
 * <p>  
 *  TbContinent 大陆表
 * </p>
 * @author  XieTao
 * @date 2020-04-10 
 */


public class TbContinent  implements Serializable {

	/**
	 * 大陆ID
	 */
	private Long cid;

	/**
	 * 大陆中文名
	 */
	private String cname;

	/**
	 * 大陆英文名
	 */
	private String ename;

	public Long getCid() {
		return cid;
	}

	public void setCid(Long cid) {
		this.cid = cid;
	}

	public String getCname() {
		return cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public String getEname() {
		return ename;
	}

	public void setEname(String ename) {
		this.ename = ename;
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) {
			return true;
		}
		if (!(o instanceof TbContinent)) {
			return false;
		}
		TbContinent that = (TbContinent) o;
		return Objects.equals(cid, that.cid) &&
				Objects.equals(cname, that.cname) &&
				Objects.equals(ename, that.ename);
	}

	@Override
	public int hashCode() {
		return Objects.hash(cid, cname, ename);
	}

	@Override
	public String toString() {
		return "TbContinent{" +
				"cid=" + cid +
				", cname='" + cname + '\'' +
				", ename='" + ename + '\'' +
				'}';
	}
}
